package itdfq.dfq.Behavior_Patters.zhizelian;

/**
 * @Author GocChin
 * @Date 2021/5/3 18:30
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210111  段方钦");
        Leaders l1,l2,l3;
        l1=new Fudaoyuan("刘伟");
        l2=new Yuanzhang("王五");
        l3=new Xiaozhang("旺达");
        l1.setLeaders(l2);
        l2.setLeaders(l3);

        Scholarship s1 = new Scholarship("张三",230);
        l1.handleRe(s1);
        Scholarship s2 = new Scholarship("李四",780);
        l1.handleRe(s2);
        Scholarship s3 = new Scholarship("小明",1400);
        l1.handleRe(s3);

    }
}
